home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir29
/
gmblmt94.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-08-09
|
4KB
|
103 lines
echo off
cls
break on
if %0==a:install goto adrive
if %0==A:install goto adrive
if %0==A:INSTALL goto adrive
if %0==b:install goto bdrive
if %0==B:install goto bdrive
if %0==B:INSTALL goto bdrive
if %0==install goto doinstall
if %0==INSTALL goto doinstall
echo Please switch to the drive you wish to install from before
echo starting install. For example, to install from the A: drive,
echo Enter A:
echo Then enter INSTALL %1
goto End
:adrive
a:
goto doinstall
:bdrive
b:
goto doinstall
:doinstall
if "%1"=="" goto DriveNeeded
if exist %1\*.* goto makedir
:InvalidDrive
echo "%1" is an invalid drive name. Please use the correct drive letter
echo followed by a colon:
:DriveNeeded
echo Please specify which drive to install Football Edition 1994 to,
echo for example:
:Example
echo.
echo install c:
goto End
:MakeDir
echo ╔══════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ GAMBLER'S MATE ║
echo ║ Football Edition 1994 ║
echo ║ Copyright (c) 1994 ║
echo ║ All Rights Reserved ║
echo ║ ║
echo ║ By Mark E. Savey ║
echo ║ Disk Install Utility ║
echo ║ ║
echo ║ ║
echo ║ This program will install all files into a directory called ║
echo ║ "\GM\GM94" on drive %1. TWO "BACKUP" directories will also ║
echo ║ created "\GM\GM94\PREDICT" and "\GM\GM94\UPDATE", to allow ║
echo ║ all data files to be created, as a safety measure. ║
echo ║ ║
echo ║ If you do NOT wish to install, press Ctrl-C then "Y" now. ║
echo ║ ║
echo ╚══════════════════════════════════════════════════════════════════╝
echo.
pause
echo.
echo Checking for existence of %1\GM\GM94...
if exist %1\GM\GM94\*.* goto DirExists
if not exist %1\GM\*.* goto makeit
goto carryon
:makeit
md %1\GM > NUL
:carryon
echo.
echo Making appropriate Football Edition 1994 directories...
md %1\GM\GM94 > NUL
md %1\GM\GM94\PREDICT > NUL
md %1\GM\GM94\UPDATE > NUL
echo Everything is OK. %1\GM\GM94, %1\GM\GM94\PREDICT and UPDATE have been made!
goto CopyFiles
:DirExists
echo WARNING: The directory %1\GM\GM94 already exists. Press Ctrl-C then
echo "Y" now if you don't want to overwrite the contents of that
echo directory.
echo.
pause
echo.
:CopyFiles
echo.
echo Extracting and copying "Football Edition 1994" files to %1\GM\GM94...
copy/v *.* %1\GM\GM94
if not exist %1\GM\GM94\RECORD.S3 goto InstallError
cls
echo ╔══════════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Football Ed. 1994 has been successfully installed to your %1 drive. ║
echo ║ ║
echo ║ To run Football Edition 1994 type GM94 and press ENTER. ║
echo ║ ║
echo ╚══════════════════════════════════════════════════════════════════════╝
%1
cd %1\GM\GM94
goto End
:InstallError
echo ERROR: Installation of Football Edition 1994 into %1\GM\GM94 was unsuccessful.
echo This could be caused because your %1 drive is full or unaccessible.
echo Football Edition 1994 needs about 400K of free disk space.
echo.
:End
echo.